package com.gz.purchase.library.util;


import com.gz.purchase.library.listener.QueryInStorageHistorylistener;

public class Constants {

	//public static final String URL_HOST = "http://221.204.249.71:8888";
	//public static final String URL_PICTURE_HOST = "http://221.204.249.71:4001/";// 图片服务器
	public static final String URL_HOST = "http://mylife114.com";
	public static final String URL_PICTURE_HOST = "http://api.mylife114.com";


	public static final int REQ_UNKNOW = -1;//无请求
	public static final int REQ_OK = 0x0;//请求成功
	public static final int REQ_FAILED = 0x1;//请求失败
	public static final int REQ_OFFLINE = 0x2;//离线状态，需要重新登录
	public static final int REQ_NO_MORE_DATA = 0x4;//没有更多数据
	public static final int REQ_DATA_SIZE_LIMIT = 30;//网络数据返回条数

    // LoginListener 相关ret值
	public static final int REQ_ERROR_USER_NAME = 1; // 用户名错误
	public static final int REQ_ERROR_PWD = 2; // 密码错误
	public static final int REQ_USER_FORBIDDENED = 3; // 用户被禁用

	// GetMainProductsListener 相关ret值
	public static final int REQ__USERID_IS_EMPTY = 1;//用户id为空
	public static final int REQ_NO_DATA = 2;//暂无库存
	public static final int REQ_DATA_ERROR = 3;// 存在未被关联的基础商品，请联系相关人员维护

    //SubmitOrderListener 相关ret值
    public static final int REQ_PRODUCT_IS_NOT_ENOUGHT = 6;// 库存量不足

    public static final int REQ_NO_PURCHASE_ORDER = 2;//该用户暂无订单

	//GetStorageCheckProductslistener 相关ret
	public static final int REQ_NO_STORAGE_PRODUCTS = 2;// 没有满足查询条件的订单

	//DeletePurchasePrderListener 相关ret ret=0订单作废操作成功 ret=1用户id为空  ret=2订单号不能为空  ret=3订单作废操作失败 ret=4该订单已作废
    public static final int REQ_THIS_ORDER_HAS_INVALID = 4;//该订单已作废

    //GetShopListListener 相关ret 值
    public static final int REQ_NO_SHOP = 4;//暂无供应商信息

    //PutIntoOutStorageCartListener 相关ret 值
    public static final int REQ_PUT_OUT_STORAGE_CART_FAIL = 5;// 放入出库车失败
    public static final int REQ_STORAGE_IS_ZERO_OR_AUTHORITY_ERROR = 6; //放入出库车商品存在库存为0或者不属于当前代购员的商品

	// GetOutStorageCartProductsListener 相关ret值
	public static final int REQ_STORAGE_CART_IS_EMPTY = 4;//该用户出库车信息为空

	//ConfirmOutStorageListener 相关ret 值
	public static final int REQ_OUT_STORAGE_FILL_NUM_IS_OVER_REALITY = 7;//部分商品出库量大于库存量

   //GetStorageRoomListener 相关ret值
	public static final int REQ_STORAGE_ROOM_IS_EMPTY = 4;//其他库房为空


	//GetInStorageShopsListener
	public static final int REQ_IN_STORAGE_NO_SHOP = 6;//暂无商家可供选择
	public static final int REQ_IN_STORAGE_COMPANY_NOT_EXIST = 5;//该物业公司关联商城物业公司不存在
	public static final int REQ_IN_STORAGE_NOT_CONNECT_COMPANY = 4;//该物业公司尚未关联商城物业公司

	//SerarchProductListener

	public static final int REQ_SEARCH_PRODUCT_NO_PRODUCT = 4;//暂无商品可供查询

	// InStorageConfirmListener
    public static final int REQ_IN_STORAGE_CONFIRM_FAIL = 6;//商品入库失败

    // GetMoveInStorageConfirm  相关ret 值
    public static final int REQ_MOVE_IN_STORAGE_NO_DATA = 4;//暂无调入本仓库的记录

    //RejectOrAgreeInStorageListener
    public static final int REQ_REJECT_FAIL = 5;//移库入库 "拒绝" 失败
    public static final int REQ_AGREE_FAIL = 7;//移库入库 "确认" 失败

	//QueryInStorageHistorylistener

	public static final int REQ_QUERY_NO_DATA = 4;//暂无入库记录

	public static final String ACTION_EXIT_WHOLE_APP = "com.holdfun.superstyle.action.EXIT_WHOLE_APP";

	public static final String FOLDER_ROOT = "/gangzhen";
	public static final String FOLDER_REPORT_CACHE = "/ReportCache";
	public static final String FILE_ERROR_REPORT = "/err.log";
	public static final String FILE_BEHAVIOUS_REPORT = "/behavious.log";

	public static final String REQ_MSG = "msg";
	public static final String REQ_RESULT = "result";
	public static final String REQ_STATUS = "ret";
	public static final String REQ_PRODUCTS = "products";


	public static final String RADIO_BUTTOM_CGRK = "采购入库";
	public static final String RADIO_BUTTOM_PYRK = "盘盈入库";
	public static final String RADIO_BUTTOM_THRK = "退货入库";
	public static final String RADIO_BUTTOM_DBRK = "调拨入库";

	public static final String OUT_STORAGE_TYPE_DBCK = "调拨出库";
	


	public static final int ANDROID_PLATFORM = 1; // Android
	public static final int IOS_PLATFORM = 2;     // IOS
	public static final String PREFERENCE_USER_ID = "user_id";
	public static final String URL_LOGIN = URL_HOST +"/android_store/user_login"; // 登录

	public static final String  URL_PARCHASE_GET_MAIN_PRODUCTS = URL_HOST+ "/android_store/shop_products_shop_sale_list";// 获取首页订单的数据
    public static final String  URL_SUBMIT_ORDER = URL_HOST+"/android_store/shop_products_shop_sale";//提交订单
    public static final String  URL_GET_PURCHASE_ORDERS =URL_HOST+"/android_store/shop_sale_order_list";//获取代购订单数据
	public static final String  URL_GET_STORAGE_PRODUCTS = URL_HOST+"/android_store/user_storage_detail";//库存查看页面，获取库存商品
    public static final String  URL_DELETE_PURCHASE_ORDER = URL_HOST+"/android_store/shop_sale_order_del"; //删除代购订单
    public static final String  URL_GET_OSHOP_LIST = URL_HOST+"/android_store/user_shop_list"; // 获取商家列表
    public static final String  URL_PUT_PRODUCTS_INTO_STORAGE_CART = URL_HOST+ "/android_store/goto_storage_out_car";// 放入出库车
	public static final String URL_GET_STORAGE_CART_PRODUCTS = URL_HOST+"/android_store/user_storage_out_vehicle";//获取出库车里的商品
    public static final String URL_GET_STORAGE_ROOM_LIST = URL_HOST+"/android_store/user_storage_list";//获取库房列表
    public static final String URL_OUT_STORAGE_CONFIRM = URL_HOST +"/android_store/user_storage_out_vehicle_out"; //出库确认
    public static final String URL_IN_STORAGE_SEARCH = URL_HOST+"/android_store/user_storage_products_list";// 入库界面 条件查询商品列表
	public static final String URL_IN_STORAGE_GET_SHOP_LIST = URL_HOST +"/android_store/user_exits_shop_list";// 获取商家下拉列表
    public static final String URL_IN_STORAGE = URL_HOST+"/android_store/user_storage_in";//入库界面 入库操作
    public static final String URL_IN_STORAGE_CONFIRM = URL_HOST+"/android_store/user_storage_should_in";// 移库入库确认界面获取入库信息
    public static final String URL_IN_STORAGE_YES_NO = URL_HOST+"/android_store/order_storage_should_in_sign"; // 移库入库确认 界面 确认或者拒绝操作
    public static final String URL_IN_STORAGE_HIOSTORY = URL_HOST+"/android_store/user_storage_in_history_list";// 入库历史记录查询
    public static final String URL_OUT_STORAGE_HISTORY = URL_HOST+"/android_store/user_storage_out_history_list";// 出库车历史记录查询


}
